package com.jhws.business.device.bo;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.util.Date;

@Table(name = "log_dev_unlock")
@Entity
public class LogDevUnlock {
    @Id
    @Column(name = "id")
    private String id; // id
    @Column(name = "dev_number")
    private String devNumber;
    @Column(name = "room_info")
    private String roomInfo;
    @Column(name = "room_info_Num")
    private String roomInfoNum;
    @Column(name = "type")
    private String type;
    @Column(name = "comm_code")
    private String commCode;
    @Column(name = "building")
    private String building; //栋号
    @Column(name = "unit")
    private String unit; //单元号
    @Column(name = "owner_code")
    private String ownerCode;
    @Column(name = "snapshot")
    private String snapshot;
    @Column(name = "owner_mob")
    private String ownerMob;
    @Column(name = "owner_name")
    private String ownerName;
    @Column(name = "time")
    private Date time;
    @Column(name = "mac")
    private String mac;
    @Column(name = "image_url")
    private String imageUrl; //图片地址
    @Transient
    @JSONField(serialize=false)
    private String tempFile;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDevNumber() {
        return devNumber;
    }

    public void setDevNumber(String devNumber) {
        this.devNumber = devNumber;
    }

    public String getRoomInfoNum() {
        return roomInfoNum;
    }

    public void setRoomInfoNum(String roomInfoNum) {
        this.roomInfoNum = roomInfoNum;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public String getSnapshot() {
        return snapshot;
    }

    public void setSnapshot(String snapshot) {
        this.snapshot = snapshot;
    }

    public String getOwnerMob() {
        return ownerMob;
    }

    public void setOwnerMob(String ownerMob) {
        this.ownerMob = ownerMob;
    }

    public String getRoomInfo() {
        return roomInfo;
    }

    public void setRoomInfo(String roomInfo) {
        this.roomInfo = roomInfo;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getTempFile() {
        return tempFile;
    }

    public void setTempFile(String tempFile) {
        this.tempFile = tempFile;
    }

    @Override
    public String toString() {
        return "LogDevUnlock{" +
                "id='" + id + '\'' +
                ", devNumber='" + devNumber + '\'' +
                ", roomInfo='" + roomInfo + '\'' +
                ", roomInfoNum='" + roomInfoNum + '\'' +
                ", type='" + type + '\'' +
                ", commCode='" + commCode + '\'' +
                ", ownerCode='" + ownerCode + '\'' +
                ", snapshot='" + snapshot + '\'' +
                ", ownerMob='" + ownerMob + '\'' +
                ", ownerName='" + ownerName + '\'' +
                ", time=" + time +
                ", mac='" + mac + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", tempFile='" + tempFile + '\'' +
                '}';
    }
}
